<%@ page language="java" import="java.util.*,com.ncp.model.entity.registerlogin.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String name=(String)session.getAttribute("LoginName");
String img = (String)session.getAttribute("UserImg");
String userID = (String)session.getAttribute("userID");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>修改用户注册信息</title>
    <link href="/NCP/css/common.css" type="text/css" rel="stylesheet" />
	 <script language="JavaScript" type="text/javascript" src="/NCP/js/register/form_ck.js" charset="UTF-8"></script>
  </head>  
 <script text="text/JavaScript">
  
function  abc() {
 if(document.form2.userRealName.value=="")
	{
	
    document.form2.userRealName.focus();
	  return false;
	 }
 else if(document.form2.userEmail.value=="")
	{
	
	document.form2.userEmail.focus();
	  return false;
	 }
 else if(document.form2.userTelephone.value == "")
	{
	
    document.form2.userTelephone.focus();
	  return false;
	 }
 else if(document.form2.userAddress.value=="")
	{
	
		
	document.form2.userAddress.focus();
	  return false;
	 }
	
  else if(document.form2.userAddress.value!=""&&document.form2.userTelephone.value!=""&&document.form2.userEmail.value!=""&&
		  document.form2.userRealName.value!=""
		  ){
return window.confirm("你真的要修改信息吗？"); 	
}
}
  
</script>
  <body>
    <div id="allpage">
    <jsp:include flush="true" page="../index/head.jsp"></jsp:include>
  <div id="Login" style="text-align:center;">
	<form name="form2" style="width:550px; margin:0 auto; text-align:left;" id="form2" action="RegisterServlet?Submit1=update" method="post"  >
			<div style="float:left">
			<label>
			        <span class="items_name">登录账号：</span>
				    <input type="text" readonly name="userLoginName" value="${UserBasicBeanList.userLoginName }" style="border:1px solid #CCC; width:200px; height:28px; line-height:28px; color:#999;"  />
			        <br>
			</label>
								<div style="clear:both; height:10px;"></div>
			<label>
			        <span class="items_name">真实名字：</span>
					<input type="text" name="userRealName" value="${UserBasicBeanList.userName}" style="border:1px solid #CCC; width:200px; height:28px; line-height:28px; color:#999;"  /><br>
            </label>
								<div style="clear:both; height:10px;"></div>
		    
		   <label>
			                 	<span class="items_name">电子邮件：</span>
								<input type="text" name="userEmail" readonly value="${UserBasicBeanList.email }"  style="border:1px solid #CCC; width:200px; height:28px; line-height:28px; color:#999;"  />
		  </label>
								<div style="clear:both; height:10px;"></div>
		  <label>
			                 	<span class="items_name">联系电话：</span>
								<input type="text" name="userTelephone" value="${UserBasicBeanList.tel }" onBlur="checkTel(this)" style="border:1px solid #CCC; width:200px; height:28px; line-height:28px; color:#999;"  />
		                        <span id=tel_notice ></span><br>
		 </label>
								<div style="clear:both; height:10px;"></div>
		<label>
			                 	<span class="items_name">详细地址：</span>
								<input type="text" name="userAddress"  value="${UserBasicBeanList.address }" style="border:1px solid #CCC; width:200px; height:28px; line-height:28px; color:#999;"  /><br>
		</label>
		
								<div style="clear:both; height:10px;"></div>
	    <a href="pages/registerlogin/modifypassword.jsp" style="width:87px; float:left;">修改密码</a>
        <a href="javascript:window.history.back()" style="width:87px; float:left;"><img src="/NCP/images/register/44.png" />返回</a>	
        <input type="submit"  onclick="return abc();"  class="right" value="update" style="width:87px; float:left; cursor:pointer; height:22px; background:url(images/index/modify.jpg);display:block;font-size:0;line-height:0;text-indent:-9999px;" />
		</div>
		<div  style="float:left; width:140px">&nbsp;</div>
		<div  style="float:left">
		<label>
		
			                 	<span class="items_name">我的头像: </span>
			                 	<br/>
			                 		<br/>
     	                      <a href="AddImageTurnServlet?UserID=<%=userID %>">  <img style="clear:both; height:100px;" src="<%=img%>"></a>
     	                      <br/>
     	                      	<br/>
                                <a href="AddImageTurnServlet?UserID=<%=userID %>"><span class="items_name">头像修改</span></a>
		</label>
		</div>
		</form>
		</div>
		
  <div style="clear:both; height:40px;"></div>
	<div id="slice">
	</div>
	
	<p id="footer">地址：山东省淄博市张店区创业园&emsp;&emsp;电话：0533-545645634/0533-64533232&emsp;&emsp;传真：0533-545645634</p>
	
</div>

</body>

</html>